From: Ian Campbell Date: Fri, 30 Nov 2012 12:20:21 +0000 (+0000) Subject: arm: Enable build without CONFIG_DTB_FILE X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7584 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=635283fdf703063dc91f7458f873d7fff173d453;p=xen.git arm: Enable build without CONFIG_DTB_FILE Signed-off-by: Ian Campbell Acked-by: Tim Deegan Committed-by: Ian Campbell --- diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index d3e34bc354..e69b278832 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -34,10 +34,6 @@ obj-y += hvm.o ifdef CONFIG_DTB_FILE obj-y += dtb.o AFLAGS += -DCONFIG_DTB_FILE=\"$(CONFIG_DTB_FILE)\" -else -# XXX: When running on the model there is no bootloader to provide a -# device tree. It must be linked into Xen. -$(error CONFIG_DTB_FILE must be set to the absolute filename of a DTB) endif ALL_OBJS := head.o $(ALL_OBJS) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index f0f4cd3d9f..410d7dbcf3 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -123,9 +123,11 @@ SECTIONS } :text _end = . ; +#ifdef CONFIG_DTB_FILE /* Section for the device tree blob (if any). */ _sdtb = .; .dtb : { *(.dtb) } :text +#endif /* Sections to be discarded */ /DISCARD/ : {